{include file="public/header" /}

<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<!-- 新消息通知 -->
					<div class="aw-mod aw-notification-box collapse" id="index_notification">
						<div class="mod-head common-head">
							<h2>
								<span class="pull-right"><a href="account/setting/privacy/#notifications" class="text-color-999"><i class="icon icon-setting"></i>通知设置</a></span>
								<i class="icon icon-bell"></i>新通知<em class="badge badge-important" name="notification_unread_num"><?php // // echo $this->user_info['notification_unread']; ?></em>
							</h2>
						</div>
						<div class="mod-body">
							<ul id="notification_list"></ul>
						</div>
						<div class="mod-footer clearfix">
							<a href="javascript:;" onclick="AWS.Message.read_notification(false, 0, false);" class="pull-left btn btn-mini btn-gray">我知道了</a>
							<a href="notifications/" class="pull-right btn btn-mini btn-success">查看所有</a>
						</div>
					</div>
					<!-- end 新消息通知 -->
					<!-- tab切换 -->
					<ul class="nav nav-tabs aw-nav-tabs active hidden-xs">
						<li class=" <?php if($status=="hot"){ echo "active";} ?>">
							<a href="{:url('index/article/index')}?status=hot" id="sort_control_hot" >热门</a>
						</li>
						<li class=" <?php if($status=="recommend"){ echo "active";} ?>">
							<a href="{:url('index/article/index')}?status=recommend" >推荐</a></li>
						<li class=" <?php if($status!="hot"&&$status!="recommend"){ echo "active";} ?>">
							<a href="{:url('index/article/index')}"  >最新</a></li>

						<h2 class="hidden-xs"><i class="icon icon-list"></i> 文章</h2>
					</ul>
					<!-- end tab切换 -->

				
					<!-- 自定义tab切换 -->
					<!-- <div class="aw-tabs"> -->
						<!-- <ul> -->
							<!-- <li class="active"><a href="" day="30">30天</a></li>
						  	<liclass="active"><a href="" day="7">7天</a></li>
						  	<li ><a href="feature_id-" day="1">当天</a></li> -->
						<!-- </ul> -->
					<!-- </div> -->
					<!-- end 自定义tab切换 -->
				

					<div class="aw-mod aw-explore-list">
						<div class="mod-body">
							<div class="aw-common-list">
							{volist name="list" id="v"}
								  <div class="aw-item article" data-topic-id="">
								    <a class="aw-user-name hidden-xs" data-id="1" href="http://git.cooldreamer.com/ask/?/people/admin" rel="nofollow">
								      <img src="/uploads/avatar/{$v.avatar_file}" alt=""></a>
								    <div class="aw-question-content">
								      <h4>
								        <a href="{:url('index/article/index')}?id={$v['id']}">{$v.title}</a></h4>
								      <p>
								        <a class="aw-question-tags" href=""><?php  $topic = unserialize($v['recent_topics']); echo $topic[0]; ?></a>•
								        <a href="" class="aw-user-name">{$v.user_name}</a>
								        <span class="text-color-999">发表了文章 • {$v.comments} 个评论 • {$v.views} 次浏览 • {:date_friendly($v['add_time'])}</span>
								        <span class="text-color-999 related-topic collapse">• 来自相关话题</span></p>
								      <!-- 文章内容调用 -->
								      <div class="markitup-box">
								      <!--   <img src="http://cooldreamer.org/ask/uploads/article/20161103/cebb5c63d0cf8132fe5699bbcf3ea482.jpg" class="img-polaroid pull-left inline-img" title="5c804cb969fc62fd652c148bbea71204.jpg" alt="5c804cb969fc62fd652c148bbea71204.jpg"> -->
								        <div class="img pull-right">
								        	
								        </div>{:msubstr($v.message)}</div>
								     <!--  <div class="collapse all-content">
								        <br>
								        <div class="aw-upload-img-list active">
								          <a href="http://cooldreamer.org/ask/uploads/article/20161103/cebb5c63d0cf8132fe5699bbcf3ea482.jpg" target="_blank" data-fancybox-group="thumb" rel="lightbox"></a>
								        </div>
								        <br>木木材af木木材af木木材af</div> -->
								      <!-- end 文章内容调用 --></div>
								  </div>
						{/volist}
							</div>
						</div>
						<div class="mod-footer">
							<div class="mod-footer">
							<div class="page-control">
							<ul class="pagination pull-right">
							<li class="active"><a href="javascript:;">1</a></li>
							<li><a href="http://git.cooldreamer.com/ask/?/sort_type-new__day-0__is_recommend-0__page-2">2</a></li>
							<li><a href="http://git.cooldreamer.com/ask/?/sort_type-new__day-0__is_recommend-0__page-2">&gt;</a></li>
							
							</ul>
							</div>						
							</div>
						</div>
					</div>
				</div>

				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs hidden-sm">
					<?php // // TPL::output('block/sidebar_feature.tpl.htm'); ?>
					<?php // // TPL::output('block/sidebar_hot_topics.tpl.htm'); ?>
					<?php // // TPL::output('block/sidebar_hot_users.tpl.htm'); ?>
				</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>
{include file="public/footer" /}